const mysql = require('mysql2');

const pool = mysql.createPool({
    host: '101.33.248.180', // 云服务器公网IP
    user: 'db',
    password: '123456',
    port: 3306,
    database: 'db'
});

// 推荐用 promise pool，支持 async/await
module.exports = pool.promise();